﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x02001337 RID: 4919
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class TakeCityShopRewardCsReq : IMessage<TakeCityShopRewardCsReq>, IMessage, IEquatable<TakeCityShopRewardCsReq>, IDeepCloneable<TakeCityShopRewardCsReq>, IBufferMessage
	{
		// Token: 0x17003E0C RID: 15884
		// (get) Token: 0x0600DC34 RID: 56372 RVA: 0x0024DA00 File Offset: 0x0024BC00
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<TakeCityShopRewardCsReq> Parser
		{
			get
			{
				return TakeCityShopRewardCsReq._parser;
			}
		}

		// Token: 0x17003E0D RID: 15885
		// (get) Token: 0x0600DC35 RID: 56373 RVA: 0x0024DA07 File Offset: 0x0024BC07
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return TakeCityShopRewardCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17003E0E RID: 15886
		// (get) Token: 0x0600DC36 RID: 56374 RVA: 0x0024DA19 File Offset: 0x0024BC19
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return TakeCityShopRewardCsReq.Descriptor;
			}
		}

		// Token: 0x0600DC37 RID: 56375 RVA: 0x0024DA20 File Offset: 0x0024BC20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeCityShopRewardCsReq()
		{
		}

		// Token: 0x0600DC38 RID: 56376 RVA: 0x0024DA28 File Offset: 0x0024BC28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeCityShopRewardCsReq(TakeCityShopRewardCsReq other) : this()
		{
			this.level_ = other.level_;
			this.shopId_ = other.shopId_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600DC39 RID: 56377 RVA: 0x0024DA59 File Offset: 0x0024BC59
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public TakeCityShopRewardCsReq Clone()
		{
			return new TakeCityShopRewardCsReq(this);
		}

		// Token: 0x17003E0F RID: 15887
		// (get) Token: 0x0600DC3A RID: 56378 RVA: 0x0024DA61 File Offset: 0x0024BC61
		// (set) Token: 0x0600DC3B RID: 56379 RVA: 0x0024DA69 File Offset: 0x0024BC69
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Level
		{
			get
			{
				return this.level_;
			}
			set
			{
				this.level_ = value;
			}
		}

		// Token: 0x17003E10 RID: 15888
		// (get) Token: 0x0600DC3C RID: 56380 RVA: 0x0024DA72 File Offset: 0x0024BC72
		// (set) Token: 0x0600DC3D RID: 56381 RVA: 0x0024DA7A File Offset: 0x0024BC7A
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint ShopId
		{
			get
			{
				return this.shopId_;
			}
			set
			{
				this.shopId_ = value;
			}
		}

		// Token: 0x0600DC3E RID: 56382 RVA: 0x0024DA83 File Offset: 0x0024BC83
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as TakeCityShopRewardCsReq);
		}

		// Token: 0x0600DC3F RID: 56383 RVA: 0x0024DA91 File Offset: 0x0024BC91
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(TakeCityShopRewardCsReq other)
		{
			return other != null && (other == this || (this.Level == other.Level && this.ShopId == other.ShopId && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600DC40 RID: 56384 RVA: 0x0024DAD0 File Offset: 0x0024BCD0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.Level != 0U)
			{
				num ^= this.Level.GetHashCode();
			}
			if (this.ShopId != 0U)
			{
				num ^= this.ShopId.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600DC41 RID: 56385 RVA: 0x0024DB28 File Offset: 0x0024BD28
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600DC42 RID: 56386 RVA: 0x0024DB30 File Offset: 0x0024BD30
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600DC43 RID: 56387 RVA: 0x0024DB3C File Offset: 0x0024BD3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.ShopId != 0U)
			{
				output.WriteRawTag(40);
				output.WriteUInt32(this.ShopId);
			}
			if (this.Level != 0U)
			{
				output.WriteRawTag(48);
				output.WriteUInt32(this.Level);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600DC44 RID: 56388 RVA: 0x0024DB98 File Offset: 0x0024BD98
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.Level != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Level);
			}
			if (this.ShopId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.ShopId);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600DC45 RID: 56389 RVA: 0x0024DBF0 File Offset: 0x0024BDF0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(TakeCityShopRewardCsReq other)
		{
			if (other == null)
			{
				return;
			}
			if (other.Level != 0U)
			{
				this.Level = other.Level;
			}
			if (other.ShopId != 0U)
			{
				this.ShopId = other.ShopId;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600DC46 RID: 56390 RVA: 0x0024DC40 File Offset: 0x0024BE40
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600DC47 RID: 56391 RVA: 0x0024DC4C File Offset: 0x0024BE4C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num != 40U)
				{
					if (num != 48U)
					{
						this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
					}
					else
					{
						this.Level = input.ReadUInt32();
					}
				}
				else
				{
					this.ShopId = input.ReadUInt32();
				}
			}
		}

		// Token: 0x0400576C RID: 22380
		private static readonly MessageParser<TakeCityShopRewardCsReq> _parser = new MessageParser<TakeCityShopRewardCsReq>(() => new TakeCityShopRewardCsReq());

		// Token: 0x0400576D RID: 22381
		private UnknownFieldSet _unknownFields;

		// Token: 0x0400576E RID: 22382
		public const int LevelFieldNumber = 6;

		// Token: 0x0400576F RID: 22383
		private uint level_;

		// Token: 0x04005770 RID: 22384
		public const int ShopIdFieldNumber = 5;

		// Token: 0x04005771 RID: 22385
		private uint shopId_;
	}
}
